using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 面板地图
/// </summary>
public class TetrisMap
{
    private int _width = 8;

    private int _height = 14;

    private int[,] _arryMap;


    public TetrisMap(int width,int height)
    {
        this._width = width;
        this._height = height;
        this.InitMap();
    }

    /// <summary>
    /// 初始化面板
    /// </summary>

    public void InitMap()
    {
        this._arryMap = new int[this._width,this._height];
    }

    /// <summary>
    /// 单个方块修改到地图上（位置刷新）
    /// </summary>
    /// <param name="simple"></param>
    public void SetSimpleToMap(TetrisSimple simple)
    {

    }

    /// <summary>
    /// 获取地图数据
    /// </summary>
    /// <returns></returns>
    public int[,] GetMapData()
    {
        return this._arryMap;
    }

    /// <summary>
    /// 获取单个格子上的数据
    /// </summary>
    /// <param name="row"></param>
    /// <param name="col"></param>
    /// <returns></returns>
    public int GetSimpleMapData(int row,int col)
    {
        return this._arryMap[row,col];
    }
}
